﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace JustTest.Models
{
    public class Answer
    {
        public int Id { get; set; }

        [StringLength(300, ErrorMessage = "Answer content must be 200 characters or less in length.")]
        [Required(ErrorMessage = "Answer content is required.")]
        public string Content { get; set; }

        [Required(ErrorMessage = "Answer value is required.")]
        public int Value { get; set; }
        public virtual Question Question { get; set; }
    }
}